layui.use(['form','table'], function () {
    var form = layui.form

    form.on('submit(formGo)',function (data){
        console.log(data.field)
        var data2 = JSON.stringify(data.field);
        $.ajax({
            url: "/webapi/ich/add",
            type: "post",
            data: data2,
            contentType:' application/json;charset=UTF-8',
            success: function (rs) {
                if(rs.code > 0){
                    if(parent != null){
                        parent.layer.closeAll();
                        parent.location.reload();
                    }
                }
            }
        })
        event.preventDefault();
    })
})